const state = {
  userinfo: {
    name: 'xiaojue',
    age: 18
  }
}
const mutations = {
  changeUserName (state) {
    state.userinfo.age++
  }
}
const actions = {}
const getters = {}

export default {
  namespaced: true,//确保模块私有性,自己的方法只能自己模块调用,默认为false
  state,
  mutations,
  actions,
  getters
}